﻿using System.Collections.Generic;
using System.Linq;

namespace DAL
{
    public class Campus
    {

        public static IList<Model.Campus> Select()
        {
            var campus = from m in DbHelper.Db.Campus
                              select m;
            return campus.ToList();
        }

        public static Model.Campus Select(string campusName)
        {
            var campus = from m in DbHelper.Db.Campus
                              select m;
            foreach (var item in campus)
            {
                if (item.CampusName == campusName)
                    return item;
            }
            return null;
        }
    }
}
